var path = require('path')

var config = {
    // debug 为 true 时，用于本地调试
    debug: false,
    debug_login: false,

    //path config
    soundImportPath: '/home/audiostudio/sound/',
    musicImportPath: '/home/audiostudio/music',
    soundResourcePath: path.join(__dirname,'../AudioSoundResource'),
    musicResourcePath: path.join(__dirname,'../AudioMusicResource'),

    //session config
    sessionSecret : 'audio-resource-manager',

    //redis config
    redisHost : '127.0.0.1',
    //redisHost : '192.168.39.94',
    redisPort : 6379,
    redisSoundDatabase : 0,
    redisUserDatabase : 1,
    redisMusicDatabase : 2,    
    redisOrderDatabase : 3,    
    alluser : 'all.users',
    allfile : 'all.files',
    allmaintag : 'all.maintags',
    allcarts : '.carts',
    allorders : '.orders',
    user : '.user',
    childtags : '.child.tags',
    grandsontags : '.grandson.tags',
    files : '.files',
    tags : '.tags',

    //websocket
    websocketPort : 3001,

    //admin
    adminusername : 'admin',
    adminpassword : 'audiostudio',
};

module.exports = config;